row count in codeigniter

41

row count in codeigniter -

$this->db->where('EmpID >=', 5);
$query = $this->db->get('Employees');
echo $query->num_rows();

// Outputs, 4

Comments

Submit
0 Comments